<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="java.util.*,com.telecom.cms.util.*,com.telecom.cms.service.*,com.telecom.cms.dto.*"%>

<%
    List mainmenulist=(new CampMenuMgr()).findallmainmenu();
%>	
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head> 
		<LINK href="images/default.css" type=text/css rel=stylesheet>
		<STYLE>#tabsI {
			FONT-SIZE: 93%; BACKGROUND: #ffffff; FLOAT: left; WIDTH: 100%; LINE-HEIGHT: normal; BORDER-BOTTOM: #dd740b 1px solid
		}
		#tabsI UL {
			PADDING-RIGHT: 10px; PADDING-LEFT: 50px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 10px; LIST-STYLE-TYPE: none
		}
		#tabsI LI {
			PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
		}
		#tabsI A {
			PADDING-RIGHT: 0px; PADDING-LEFT: 5px; BACKGROUND: url(images/tableftI.gif) no-repeat left top; FLOAT: left; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; TEXT-DECORATION: none
		}
		#tabsI A SPAN {
			PADDING-RIGHT: 15px; DISPLAY: block; PADDING-LEFT: 6px; BACKGROUND: url(images/tabrightI.gif) no-repeat right top; FLOAT: left; PADDING-BOTTOM: 4px; COLOR: #ffffff; PADDING-TOP: 5px
		}
		#tabsI A SPAN {
			FLOAT: none
		}
		#tabsI A:hover SPAN {
			COLOR: #fff
		}
		#tabsI A:hover {
			BACKGROUND-POSITION: 0% -42px
		}
		#tabsI A:hover SPAN {
			BACKGROUND-POSITION: 100% -42px
		}
		</STYLE>

		<SCRIPT language=javascript>
<!--

//关闭和打开LOGO的脚本函数
    
	  var logoStatus = 1;
	  function switchLogo() {
	    if(logoStatus == 1) {
	      window.tb_logo.style.display = "none";
	      logoStatus = 0; 
	      window.logoswitcher.src = "/images/main_menu_down_zx.jpg";
	      return;
	    }
	    if(logoStatus == 0) {
	      window.tb_logo.style.display = "";
	      logoStatus = 1;
	      window.logoswitcher.src = "/images/main_menu_up_zx.jpg";
	      return;
	    }
	  }
	
    function menuClick(appId,appName,defaultPage){
        var obj=document.getElementById("yhtq");
    	
    	parent.outer_frame.rows="99%,1,*";
    	if(appId.indexOf("0")>-1)
    	{
    	  parent.bottomFrame.cols="0,*";
    	}
    	else
    	{
    	  parent.bottomFrame.cols="250,*"; 
    	  parent.frames("upFrame").location.href="blank.htm";
    	}
    }
    
    	function unload(){			
				parent.window.location="logon.do";
		}
    
    //-->
</SCRIPT>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Insert title here</title>
	</head>
	<body onUnload='javascript:unload();'>
		<TABLE height=33 cellSpacing=0 cellPadding=0 width="100%" border=0>
			<TBODY>
				<TR id=tb_logo>
					<TD height=57>
						<TABLE height=57 cellSpacing=0 cellPadding=0 width="100%" border=0>
							<TBODY>
								<TR>
									<!--<TD width="33%"><img src="images/telecom.JPG" width="174" height="65"></TD>-->
									<TD width="6%"></TD>
									<TD vAlign=middle noWrap>
										<img src="images/cms_logo_<%=(new com.telecom.cms.util.Constant()).getPara("PROVINCE")%>.jpg">
									</TD>
									<TD vAlign=top align=center width="61%">
										<img src="images/teradata_logo.gif">
									</TD>
								</TR>
							</TBODY>
						</TABLE>
					</TD>
				</TR>
				<TR>
					<TD height=20>
					<%
					int urer_auth = 0;
					List roleauthlist=null;
					if (null != request.getSession().getAttribute("User_Auth")) {
						urer_auth = Integer.parseInt(request.getSession().getAttribute("User_Auth")
						.toString());
						roleauthlist=(new CampMenuMgr()).findallsltmainmenu(""+urer_auth);
					}
					%>
						<TABLE height=20 cellSpacing=0 cellPadding=0 width="100%" border=0>
							<TBODY>
								<TR>
									<TD height="20">
										<DIV id=tabsI>
											<UL>
											    <%for(int i=0;i<mainmenulist.size();i++){ 
											       CampMainMenu inst=(CampMainMenu)mainmenulist.get(i);
											       if(roleauthlist!=null)
											        for(int j=0;j<roleauthlist.size();j++)
											         {
											             if(((CampMenuAuth)roleauthlist.get(j)).getMMenuId()==inst.getMMenuId()&&inst.getMMenuAuth()<=Constant.CheckAuth()){
											       %>
											       <LI>
													  <A onClick="menuClick('<%=inst.getMMenuLeftState() %>','首页','mainRight.htm')"
														   href="<%=inst.getMMenuLink() %>" target="<%=inst.getMMenuTarget() %>"><SPAN><%=inst.getMMenuName() %></SPAN>
													  </A>
											    <%break;}
											      }
											      } %>
											</UL>
										</DIV>
									</TD>
									<td height="20" valign="bottom">
										<div
											style="FONT-SIZE: 93%; BACKGROUND: #ffffff; FLOAT: left; WIDTH: 100%; LINE-HEIGHT: normal;BORDER-BOTTOM: #dd740b 1px solid">
											<A title="退出登录" href="javascript:unload()">退出登录</A>
										</div>
									</td>
								</TR>
							</TBODY>
						</TABLE>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
	</BODY>
</html>
